package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 合同管理对象 tb_contract
 * 
 * @author mcx
 * @date 2025-07-13
 */
public class TbContract extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 合同编号 */
    @Excel(name = "合同编号")
    private String contractCode;

    /** 合同名称 */
    @Excel(name = "合同名称")
    private String contractName;

    /** 合同类型 */
    @Excel(name = "合同类型")
    private String contractType;

    /** 甲方ID */
    @Excel(name = "甲方ID")
    private Long companiesA;

    /** 甲方名称 */
    @Excel(name = "甲方名称")
    private String companiesAName;

    /** 乙方ID */
    @Excel(name = "乙方ID")
    private Long companiesB;

    /** 乙方名称 */
    @Excel(name = "乙方名称")
    private String companiesBName;

    /** 签订日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "签订日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date contractDate;

    /** 合同扫描件（文件路径） */
    @Excel(name = "合同扫描件", readConverterExp = "文=件路径")
    private String contractFile;

    /** 发票（多文件路径，JSON格式） */
    @Excel(name = "发票", readConverterExp = "多=文件路径，JSON格式")
    private String contractFapiaos;

    /** 备注 */
    @Excel(name = "备注")
    private String contractRemark;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setContractCode(String contractCode) 
    {
        this.contractCode = contractCode;
    }

    public String getContractCode() 
    {
        return contractCode;
    }

    public void setContractName(String contractName) 
    {
        this.contractName = contractName;
    }

    public String getContractName() 
    {
        return contractName;
    }

    public void setContractType(String contractType) 
    {
        this.contractType = contractType;
    }

    public String getContractType() 
    {
        return contractType;
    }

    public void setCompaniesA(Long companiesA) 
    {
        this.companiesA = companiesA;
    }

    public Long getCompaniesA() 
    {
        return companiesA;
    }

    public void setCompaniesAName(String companiesAName) 
    {
        this.companiesAName = companiesAName;
    }

    public String getCompaniesAName() 
    {
        return companiesAName;
    }

    public void setCompaniesB(Long companiesB) 
    {
        this.companiesB = companiesB;
    }

    public Long getCompaniesB() 
    {
        return companiesB;
    }

    public void setCompaniesBName(String companiesBName) 
    {
        this.companiesBName = companiesBName;
    }

    public String getCompaniesBName() 
    {
        return companiesBName;
    }

    public void setContractDate(Date contractDate) 
    {
        this.contractDate = contractDate;
    }

    public Date getContractDate() 
    {
        return contractDate;
    }

    public void setContractFile(String contractFile) 
    {
        this.contractFile = contractFile;
    }

    public String getContractFile() 
    {
        return contractFile;
    }

    public void setContractFapiaos(String contractFapiaos) 
    {
        this.contractFapiaos = contractFapiaos;
    }

    public String getContractFapiaos() 
    {
        return contractFapiaos;
    }

    public void setContractRemark(String contractRemark) 
    {
        this.contractRemark = contractRemark;
    }

    public String getContractRemark() 
    {
        return contractRemark;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("contractCode", getContractCode())
            .append("contractName", getContractName())
            .append("contractType", getContractType())
            .append("companiesA", getCompaniesA())
            .append("companiesAName", getCompaniesAName())
            .append("companiesB", getCompaniesB())
            .append("companiesBName", getCompaniesBName())
            .append("contractDate", getContractDate())
            .append("contractFile", getContractFile())
            .append("contractFapiaos", getContractFapiaos())
            .append("contractRemark", getContractRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
